package org.flown.shop.dto;


import lombok.Getter;
import org.flown.shop.entity.User;


@Getter
public class UserDTO
{
    private final int id;
    private final String nickname;
    private final String username;


    public UserDTO(User user)
    {
        this.id = user.getID();
        this.nickname = user.getNickname();
        this.username = user.getUsername();
    }
}






